﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DebugCrmCustomInstallActions
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            CrmCustomInstallActions.UI.CrmSolutionInstallerAskForm form = new CrmCustomInstallActions.UI.CrmSolutionInstallerAskForm();
            CrmCustomInstallActions.UI.CrmSolutionInstallerAskForm.ChoiceResult result = form.ShowDialog("Do you want to uninstall the custom workflow commands?", "Yes, uninstall the workflows", "No, I will uninstall them manually");
            MessageBox.Show(result.ToString());


        }

        private void button2_Click(object sender, EventArgs e)
        {
            CrmCustomInstallActions.UI.CrmSolutionInstallerLoginForm form = new CrmCustomInstallActions.UI.CrmSolutionInstallerLoginForm();
            form.ShowDialog();
        }
    }
}
